package net.zjitc;

/**
 * @Author admin
 * @Date 2019/3/12 14:53
 */
public class Sup {
private String csm;
private Sp[] spArray;

Sp sell(String sName){
    for (int i = 0; i <spArray.length ; i++) {
        if (spArray[i].getName().equals(sName)) {
            return spArray[i];
        }
    }
    return null;
}

void setCsm(String csm){
    this.csm=csm;
}
String getCsm(){
    return csm;
}

    void setSpArray(Sp[] spArray) {
        this.spArray = spArray;
    }

    Sp[] getSpArray() {
    return spArray;
}

}
